/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const userRouter = {
  path: '/user',
  component: Layout,
  meta: {
    title: '人员'
  },
  children: [
    {
      path: '/user/staff/index',
      component: () => import('@/views/user/credit/index'),
      name: '/user/credit/index',
      meta: {
        title: '成员管理',
        icon: 'em-icon-role-hex',
        noCache: true
      }
    },
    {
      path: '/user/default/index',
      component: () => import('@/views/user/credit/index'),
      name: '/user/credit/index',
      meta: {
        title: '用户管理',
        icon: 'em-icon-user-setting',
        noCache: true,
        roles: ['admin', 'founder']
      }
    },
    {
      path: '/user/auth/index',
      component: () => import('@/views/user/credit/index'),
      name: '/user/credit/index',
      meta: {
        title: '访问授权',
        icon: 'em-icon-rule-c',
        noCache: true
      }
    }
  ]
}

export default userRouter
